package org.ushio.nchu_22201404.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.ushio.nchu_22201404.dao.ServiceOnlineRecordDao;
import org.ushio.common_module.entity.CustomerServiceRecord;
import org.ushio.nchu_22201404.service.impl.ServiceOnlineServiceImpl;

import java.util.List;

@Service
public class ServiceOnlineRecordService implements ServiceOnlineServiceImpl {
    @Autowired
    ServiceOnlineRecordDao serviceOnlineRecordDao;

    @Override
    public void serviceOnlineRecordInsert(CustomerServiceRecord customerServiceRecord) {
        serviceOnlineRecordDao.serviceOnlineRecordInsert(customerServiceRecord);
    }

    @Override
    public List<CustomerServiceRecord> getServiceOnlineRecordToCustomerService() {
        return serviceOnlineRecordDao.getServiceOnlineRecordToCustomerService();
    }

    @Override
    public List<CustomerServiceRecord> getServiceOnlineRecordToAdmin(){
        return serviceOnlineRecordDao.getServiceOnlineRecordToAdmin();
    }
    @Override
    public List<CustomerServiceRecord> getServiceOnlineRecordByPhoneNumber(String phoneNumber) {
        return serviceOnlineRecordDao.getServiceOnlineRecordByPhoneNumber(phoneNumber);
    }
}
